import { forwardRef, Inject, Injectable } from "@nestjs/common";
import { MichaelService } from "../michael/micheal.service";

@Injectable()
export class MoonService {
    public name: string = "I am Moon"
    constructor(@Inject(forwardRef(() => MichaelService)) private readonly michaelService: MichaelService) {

    }
    getMessage(): string {
        return "This is in moon module. But I can call Michael's message: " + this.michaelService.name;
    }
}
